package com.kevis.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kevis.common.utils.PageUtils;
import com.kevis.gulimall.member.entity.MemberEntity;
import com.kevis.gulimall.member.vo.MemberLoginVo;
import com.kevis.gulimall.member.vo.SocialUser;
import com.kevis.gulimall.member.vo.UserRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author kevis
 * @email shua67@163.com
 * @date 2022-06-16 11:33:31
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(UserRegisterVo userRegisterVo);

    void checkPhone(String phone) ;

    void checkUserName(String username) ;

    MemberEntity login(MemberLoginVo vo);


    /**
     * 社交登录
     */
    MemberEntity login(SocialUser socialUser);
}

